@extends('layouts.app')
@section('content')
   <div class="container">
       <div class="row">
           <div class="col-sm-12 col-lg-3 col-md-4">
               <div class="card">
                   <div class="card-body">
                       <img src="{{$user->avatar ?Storage::url($user->avatar):asset('images/avatar.jpeg')}}" class="card-img"/>

                       <hr class="mt-4">
                       <h3>个人简介</h3>
                       <p>{{$user->introduction}}</p>

                       <h3>注册于</h3>
                       <p>{{$user->created_at->diffForHumans()}}</p>
                   </div>
               </div>
           </div>
           <div class="col-lg-9 col-md-8">
               <div class="card">
                   <div class="card-body">
                       <p>{{$user->email}}</p>
                   </div>
               </div>
           </div>
       </div>
   </div>
@endsection
